@import url('https://fonts.googleapis.com/css?family=Montserrat');

/* setting all the values  */
* {
  padding: 0;
  margin: 0;
  background-origin: padding-box;
}

html {
  font-size: 10px;
  font-family: 'Montserrat', 'sans-serif';
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* text-decoration: none; */
}

p {
  font-size: 1.4rem;
  text-align: left;
  line-height: 2.5rem;
  color: white;
}

.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  /* align-items: baseline; */
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

/* my section */

#hero {
  background-image: url('./images/jj-jordan-wc9jceiLz1U-unsplash.jpg');
  /* background-size: auto; */
  /* background-size: cover; */
  background-size: cover;

  background-position: top center;
  position: relative;
  z-index: 1;
}
/* overlay., */
#hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.4;
  z-index: -1;
}
#hero h1 {
  display: block;
  width: fit-content;
  font-size: 4rem;
  position: relative;
  color: transparent;
  animation: show_text 1s ease forwards;
  animation-delay: 1.5s;
}
/* span color effect */
#hero h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: crimson;
  animation: show_text_box 1.5s ease;
  animation-delay: 0.5s;
  border-radius: 4px 20px 4px;
}
/* END span color effect */

#hero .cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 15px 50px 30px;
  color: white;
  background-color: transparent;
  border: 2px dashed white;
  letter-spacing: 1rem;
  margin: 30px;
  transition: all 1s ease;
  transition-property: background-color, color;
  font-size: 2rem;
}
/* hover */

#hero .cta:hover {
  background-color: crimson;
  color: white;
  font-weight: 70;
}
/*END hover */

/* END  my section * /

/* span color effect keyframe */
@keyframes show_text_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
@keyframes show_text {
  100% {
    color: white;
  }
}

/* END span color effect keyframe */
